﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="OrderItem.aspx.cs" Inherits="OLMS.OrderItem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="pure-g">
        <div class="pure-u-4-5">
            <h2>我的订单</h2>
        </div>
        <div class="pure-u-1-5">
            <asp:LinkButton ID="btnOrder" runat="server" CssClass="button-default pure-button pure-button-primary" OnClick="btnOrder_Click">下单</asp:LinkButton>
            <asp:LinkButton ID="btnReturn" runat="server" CssClass="button-default pure-button" OnClick="btnReturn_Click">返回</asp:LinkButton>
        </div>
    </div>
    <div class="pure-form">
        <div class="pure-g">

            <div class="pure-u-1-2">
                <asp:Label ID="lblUserName" runat="server" Text="收货人："></asp:Label>
                <asp:TextBox ID="txtUserName" runat="server" CssClass="pure-u-23-24"></asp:TextBox>
            </div>
            <div class="pure-u-1-2">
                <asp:Label ID="lblOrderDate" runat="server" CssClass="pure-u-23-24" Text="下单日期："></asp:Label>
            </div>
            <div class="pure-u-1">
                <asp:Label ID="lblAddress" runat="server" Text="收货地址："></asp:Label>
                <asp:TextBox ID="txtAddress" runat="server" CssClass="pure-u-23-24"></asp:TextBox>
            </div>
            <div class="pure-u-1-2">
                <asp:Label ID="lblPostalCode" runat="server" Text="邮政编码："></asp:Label>
                <asp:TextBox ID="txtPostalCode" runat="server" CssClass="pure-u-23-24"></asp:TextBox>
            </div>
            <div class="pure-u-1-2">
                <asp:Label ID="lblPhone" runat="server" Text="联系电话："></asp:Label>
                <asp:TextBox ID="txtPhone" runat="server" CssClass="pure-u-23-24"></asp:TextBox>
            </div>
            <div class="pure-u-1">
                <asp:Label ID="lblEmail" runat="server" Text="电子邮件："></asp:Label>
                <asp:TextBox ID="txtEmail" runat="server" TextMode="Email" CssClass="pure-u-23-24"></asp:TextBox>
            </div>
            <div class="pure-u-1">
                <h2>订单明细</h2>
                <table class="pure-table pure-table-bordered pure-table-striped">
                    <thead>
                        <tr>
                            <th>专辑</th>
                            <th>歌手</th>
                            <th>单价</th>
                            <th>数量</th>
                            <th>小计</th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="repOrderDetailList" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Eval("AlbumName") %></td>
                                    <td><%# Eval("ArtistName") %></td>
                                    <td><%# Eval("UnitPrice","{0:C}元") %></td>
                                    <td><%# Eval("Quantity") %></td>
                                    <td><%# Eval("TotalPrice") %></td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr>
                            <td colspan="5" style="text-align: right">
                                <asp:Label ID="lblTotal" runat="server" Text="总计："></asp:Label></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
